package com.cc.blog.service;

import com.cc.blog.entity.SysUser;
import com.cc.blog.vo.UserVo;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface SysUserService {

    UserVo findUserVoById(Long id);

    SysUser findUserById(Long id);

    SysUser finduser(String account, String password);

    /**
     * 注册新用户
     * @param sysUser
     */
    void saveUser(SysUser sysUser);

    /**
     * 根据账号查询用户
     * @param account
     * @return
     */
    SysUser findUserByAccount(String account);
}
